package com.topchain.licence;

import java.io.Serializable;

/**
 * @DESCRIPTION:
 * @USER: shg
 * @DATE: 2023/4/11 15:36
 */
public class LicenceContent  implements Serializable {

    private static final long serialVersionUID = -8041217768789327505L;
    /**
     * licence的使用者
     */
    private String user;

    /**
     * Licence生效时间
     */
    private long notBeforeTime;

    /**
     * Licence失效时间
     */
    private long notAfterTime;

    /**
     * 允许的IP地址
     */
    private String allowIp;

    /**
     * 使用者服务器的MAC地址
     */
    String mac;

    /**
     * Licence签名信息
     */
    private String sign;

    // 根证书内容
    private String rootCertContent;
    // 用户证书内容
    private String userCertContent;

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public long getNotBeforeTime() {
        return notBeforeTime;
    }

    public void setNotBeforeTime(long notBeforeTime) {
        this.notBeforeTime = notBeforeTime;
    }

    public long getNotAfterTime() {
        return notAfterTime;
    }

    public void setNotAfterTime(long notAfterTime) {
        this.notAfterTime = notAfterTime;
    }

    public String getAllowIp() {
        return allowIp;
    }

    public void setAllowIp(String allowIp) {
        this.allowIp = allowIp;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getRootCertContent() {
        return rootCertContent;
    }

    public void setRootCertContent(String rootCertContent) {
        this.rootCertContent = rootCertContent;
    }

    public String getUserCertContent() {
        return userCertContent;
    }

    public void setUserCertContent(String userCertContent) {
        this.userCertContent = userCertContent;
    }

    @Override
    public String toString() {
        return "LicenceContent{" +
                "user='" + user + '\'' +
                ", notBeforeTime=" + notBeforeTime +
                ", notAfterTime=" + notAfterTime +
                ", allowIp='" + allowIp + '\'' +
                ", mac='" + mac + '\'' +
                ", sign='" + sign + '\'' +
                ", rootCertContent='" + rootCertContent + '\'' +
                ", userCertContent='" + userCertContent + '\'' +
                '}';
    }
}
